package com.ruoyi.finance.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.finance.mapper.CenterTableMapper;
import com.ruoyi.finance.domain.CenterTable;
import com.ruoyi.finance.service.ICenterTableService;

/**
 * 模版类型表Service业务层处理
 *
 * @author ruoyi
 * @date 2025-02-27
 */
@Service
public class CenterTableServiceImpl implements ICenterTableService
{
    @Autowired
    private CenterTableMapper centerTableMapper;

    /**
     * 查询模版类型表
     *
     * @param id 模版类型表主键
     * @return 模版类型表
     */
    @Override
    public CenterTable selectCenterTableById(Long id)
    {
        return centerTableMapper.selectCenterTableById(id);
    }

    /**
     * 查询模版类型表列表
     *
     * @param centerTable 模版类型表
     * @return 模版类型表
     */
    @Override
    public List<CenterTable> selectCenterTableList(CenterTable centerTable)
    {
        return centerTableMapper.selectCenterTableList(centerTable);
    }

    /**
     * 新增模版类型表
     *
     * @param centerTable 模版类型表
     * @return 结果
     */
    @Override
    public int insertCenterTable(CenterTable centerTable)
    {
        return centerTableMapper.insertCenterTable(centerTable);
    }

    /**
     * 修改模版类型表
     *
     * @param centerTable 模版类型表
     * @return 结果
     */
    @Override
    public int updateCenterTable(CenterTable centerTable)
    {
        return centerTableMapper.updateCenterTable(centerTable);
    }

    /**
     * 批量删除模版类型表
     *
     * @param ids 需要删除的模版类型表主键
     * @return 结果
     */
    @Override
    public int deleteCenterTableByIds(Long[] ids)
    {
        return centerTableMapper.deleteCenterTableByIds(ids);
    }

    /**
     * 删除模版类型表信息
     *
     * @param id 模版类型表主键
     * @return 结果
     */
    @Override
    public int deleteCenterTableById(Long id)
    {
        return centerTableMapper.deleteCenterTableById(id);
    }

    @Override
    public List<CenterTable> selectolist(CenterTable centerTable) {
        return centerTableMapper.selectolist(centerTable);
    }
}
